<template>
  <div>
    <el-input
      v-model="input"
      placeholder="请输入灭籍编号"
      class="xx"
    ></el-input>
    <el-button type="danger" round @click="mieji(input)">确定灭籍</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
    };
  },
  methods: {
    mieji(input) {
      this.$axios
        .put("/register-serv/directory/updateState/" + input)
        .then((res) => {
          if (res.data.code == 200) {
            this.$message.success("灭籍成功！");
          }else{
             this.$message.error("灭籍失败！请稍后重试！");
          }
        });
    },
  },
};
</script>
<style  scoped>
.xx {
  width: 300px;
}
</style>
